OTP\Handler\Forms\UserProRegistrationForm S

Total Complexity 49
Dependencies 7
Dependents 0
Total lines 338
Lines of code 236
Logical lines of code 98
Comment lines 0
Methods 20
Properties 2

Methods 20

Method Rating Maintainability Complexity Lines of code
_process_userpro_form_submit()
S
61 6 11
checkIfUserHasNotSubmittedTheFormForValidation()
S
73 5 4
_userpro_phone_shortcode()
S
47 1 52
_userpro_email_shortcode()
S
47 1 52
validate_userpro_phone()
S
65 4 8
handleForm()
S
57 3 15
routeData()
S
66 3 8
getPhoneNumberSelector()
S
70 3 6
processEmailAndStartOTPVerificationProcess()
S
70 3 5
processPhoneAndStartOTPVerificationProcess()
S
70 3 5
checkIfValidFormSubmition()
S
66 3 8
processOTPEntered()
S
64 3 9
sendErrorMessageIfOTPVerificationNotStarted()
S
64 2 11
__construct()
S
58 1 15
_auto_verify_user()
S
79 2 3
handleFormOptions()
S
65 2 9
handle_post_verification()
S
80 1 3
handle_failed_verification()
S
80 1 3
_send_otp()
S
72 1 6
unsetOTPSessionVariables()
S
79 1 3